package com.sc.nft.admin.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AddPledgeTaskCollectionRequest {

    @ApiModelProperty("质押藏品id")
    @NotNull(message = "质押藏品id不能为空")
    private Long collectionId;

    @ApiModelProperty("质押藏品份数")
    @NotNull(message = "质押藏品份数不能为空")
    private Integer pledgeCount;

    @ApiModelProperty("连续持仓时间")
    @NotNull(message = "连续持仓时间不能为空")
    @Min(value = 1,message = "奖励时间最小为一小时")
    private Integer pledgeTime;

    @ApiModelProperty("质押任务奖励列表")
    @NotNull(message = "质押任务奖励列表不能为空")
    private List<AddPledgeTaskRewardRequest> pledgeTaskRewardList;
}
